﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Estimate.Common.DataFileCopyer
{
    public class UserSiteForeCopyer: BaseDataFileCopyer
    {
        public UserSiteForeCopyer(string baseDir)
            : base(baseDir)
        {

        }

        public override string[] getCopyDir(string path)
        {
            DirectoryInfo directory = new DirectoryInfo(path);
            int index = directory.FullName.LastIndexOf('\\', directory.FullName.IndexOf("\\zdzd\\")-1);
            return new string[]{ (_baseDir + directory.FullName.Substring(index + 1))};
        }
    }
}